package com.ayoka.parenting.interf;

import com.ayoka.parenting.ui.live.liveclassroom.LiveClassroomContract;
import com.tencent.teduboard.TEduBoardController;

import java.lang.ref.WeakReference;
import java.util.List;

/**
 * @ProjectName: AyokaClient.
 * @ClassName: SimpleWhiteBoardCallback.
 * @Description: .
 * @Author: jincp.
 * @CreateDate: 2019/11/5 13:49.
 */

public class SimpleWhiteBoardCallback implements TEduBoardController.TEduBoardCallback {
    private WeakReference<LiveClassroomContract.View> liveClassroomViewRef;

    public SimpleWhiteBoardCallback(WeakReference<LiveClassroomContract.View> liveClassroomViewRef) {
        this.liveClassroomViewRef = liveClassroomViewRef;
    }

    @Override
    public void onTEBError(int code, String msg) {

    }

    @Override
    public void onTEBWarning(int code, String msg) {

    }

    @Override
    public void onTEBInit() {
        LiveClassroomContract.View liveClassroomView = liveClassroomViewRef.get();
        if (liveClassroomView != null) {
            liveClassroomView.addBoardView();
        }
    }

    @Override
    public void onTEBHistroyDataSyncCompleted() {
        LiveClassroomContract.View liveClassroomView = liveClassroomViewRef.get();
        if (liveClassroomView != null) {
            liveClassroomView.onTEBHistoryDataSyncCompleted();
        }
    }

    @Override
    public void onTEBSyncData(String data) {

    }

    @Override
    public void onTEBImageStatusChanged(String boardId, String url, int status) {

    }

    @Override
    public void onTEBAddBoard(List<String> boardId, final String fileId) {
    }

    @Override
    public void onTEBDeleteBoard(List<String> boardId, final String fileId) {

    }

    @Override
    public void onTEBGotoBoard(String boardId, final String fileId) {

    }

    @Override
    public void onTEBAddFile(String fileId) {

    }

    @Override
    public void onTEBDeleteFile(String fileId) {

    }

    @Override
    public void onTEBSwitchFile(String fileId) {

    }

    @Override
    public void onTEBAddH5PPTFile(String fileId) {

    }


    @Override
    public void onTEBUndoStatusChanged(boolean canUndo) {

    }

    @Override
    public void onTEBRedoStatusChanged(boolean canredo) {
    }

    @Override
    public void onTEBFileUploadProgress(final String fid, int currentBytes, int totalBytes, int uploadSpeed, float percent) {
    }

    @Override
    public void onTEBFileUploadStatus(final String fid, int status, int code, String statusMsg) {
    }

    @Override
    public void onTEBSetBackgroundImage(final String url) {
    }

    @Override
    public void onTEBBackgroundH5StatusChanged(String boardId, String url, int status) {
    }

}
